package com.rxh.controller;

import com.rxh.pojo.Result;
import com.rxh.pojo.cross.BankResult;
import com.rxh.service.RefundNotifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
 * Created with IntelliJ IDEA.
 * User: 王德明
 * Date: 2018/9/27
 * Time: 14:51
 * Project: Management_new
 * Package: com.rxh.controller
 */
@Controller
public class RefundNotifyController {

    @Autowired
    private RefundNotifyService refundNotifyService;

    @RequestMapping(value = "/refundNotify")
    @ResponseBody
    public Result PostRefundNotify(@RequestBody BankResult bankResult) {
        return refundNotifyService.getResultMessage(bankResult);
    }
}
